@echo off
SET DBPATH=%1

echo Attaching database
isql -E -d master -Q "sp_attach_db 'redmoon', '%DBPATH%\redmoon_Data.MDF', '%DBPATH%\redmoon_Log.LDF'"